package instruction;

import java.io.Serializable;

public class Message implements Serializable {
    private String messageType;//消息类型
    private GroupMessage groupMessage;//群发操作 "groupChat"
    private PrivateMessage privateMessage;//私聊操作 "privateChat"
    private Forget forget;//忘记密码操作 "forget"
    private Login login;//登录操作 "login"
    private User register;//注册操作 "register"
    private Search search;//搜索群聊，好友操作 "search"
    private Group createGroup;//创建群聊操作 "createGroup"
    private GroupMember groupMember;//加群操作 "addGroup"
    private Friend friend;//加好友操作 "addFriend"
    private UserData userData;//返回个人的全部信息操作 "userData"
    private User user;//返回好友的个人信息 "user"
    private Group group;//返回群的所有信息 "group"
    private Modify modify;//修改信息“modify"
    public Message(String messageType) {
        this.messageType = messageType;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public GroupMessage getGroupMessage() {
        return groupMessage;
    }

    public void setGroupMessage(GroupMessage groupMessage) {
        this.groupMessage = groupMessage;
    }

    public PrivateMessage getPrivateMessage() {
        return privateMessage;
    }

    public void setPrivateMessage(PrivateMessage privateMessage) {
        this.privateMessage = privateMessage;
    }

    public Forget getForget() {
        return forget;
    }

    public void setForget(Forget forget) {
        this.forget = forget;
    }

    public Login getLogin() {
        return login;
    }

    public void setLogin(Login login) {
        this.login = login;
    }

    public User getRegister() {
        return register;
    }

    public void setRegister(User register) {
        this.register = register;
    }

    public Search getSearch() {
        return search;
    }

    public void setSearch(Search search) {
        this.search = search;
    }

    public Group getCreateGroup() {
        return createGroup;
    }

    public void setCreateGroup(Group createGroup) {
        this.createGroup = createGroup;
    }

    public GroupMember getGroupMember() {
        return groupMember;
    }

    public void setGroupMember(GroupMember groupMember) {
        this.groupMember = groupMember;
    }

    public Friend getFriend() {
        return friend;
    }

    public void setFriend(Friend friend) {
        this.friend = friend;
    }

    public UserData getUserData() {
        return userData;
    }

    public void setUserData(UserData userData) {
        this.userData = userData;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public Modify getModify() {
        return modify;
    }

    public void setModify(Modify modify) {
        this.modify = modify;
    }
}
